package io.renren.modules.gasstation.gasstationenterprise.service;

import com.baomidou.mybatisplus.extension.service.IService;
import io.renren.modules.gasstation.gasstationenterprise.entity.GasStationEnterpriseEntity;
import org.springframework.transaction.annotation.Transactional;

/**
 * @Author：T-weiwei
 * @Description: 加油站企业业务层
 * @Email：tweiwei@aliyun.com
 * @CreateDate：2022-01-10-下午3:39
 * @CopyRight：http://www.huaxun.ink/
 * @Hint： This content is limited to the internal circulation of HuaXun Hi Tech Co., Ltd.,
 * and is forbidden to be leaked and used for other commercial purposes
 **/
public interface GasStationEnterpriseService extends IService<GasStationEnterpriseEntity>  {

    /**
     * 重写update方法
     * @param enterpriseEntity 加油站企业实体类
     */
    @Transactional(rollbackFor = Exception.class)
    void update(GasStationEnterpriseEntity enterpriseEntity);

    /**
     * 根据社会信用代码获取该企业是否存在
     * @param enterpriseCode 社会信用代码
     * @return 是否成功
     */
    Boolean isExistEnterpriseByEnterpriseCode(String enterpriseCode);
}
